package com.its.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author huguangjun
 * @className Account
 * @date 2021/1/18
 * @desc 11:07
 */
@Data
@TableName("t_account")
@NoArgsConstructor
public class Account {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "total")
    private Integer total;

    @TableField(value = "used")
    private Integer used;

    @TableField(value = "residue")
    private Integer residue;
}
